package edu.sctu.wujiayi.month05.day20150526;

import edu.sctu.wujiayi.month05.day20150525.Student;

import java.util.HashMap;

/**
 * Created by user11 on 2015/5/26.
 */
public class HashMapOne {
    public HashMap<Integer,String>  setMa(){
        HashMap<Integer,String> map = new HashMap<>(10);
        map.put(1,"xuexue");
        map.put(2,"zuzhang");
        map.put(3,"huangmei");
        map.put(4,"xialei");

        return map;
    }
    public HashMap<Integer,Student> setMap(){

        HashMap<Integer,Student> map = new HashMap<>(6);

        for (int i = 0;i<map.size();i++){
            Student student = new Student();
            map.put(i,student);
        }

        return map;
    }



}
